// import { Action } from '@ngxs/store';
const service = 'view'
const controller = 'customer'

export const customerController = {
  getCustomerData: {
    service,
    controller,
    action: 'getData',
    method: 'GET'
  },
  getCustomerList: {
    service,
    controller,
    action: 'list',
    method: 'POST'
  },
  getCustomerTagList: {
    service,
    controller,
    action: 'getCustomerTagList',
    method: 'GET'
  },

  /**
   * 动态监控
   */
  getCustomerEventList: {
    service,
    controller,
    action: 'dynamic',
    method: 'POST',
    append:['record']
  },
  /**
   * 客户详情
   */
  getcostomerDetaildkList: {
    service,
    controller,
    method: 'GET'
  },

  /**
   * 活动记录(业务历史)
   */
  getcustomerDetailcontact:{
    service,
    controller,
    action: 'interacts',
    method: 'GET'
  },
  /**
   * 交易列表
   */
  getcustomerTransaction:{
    service,
    controller,
    action: 'tradeinfo',
    method: 'POST',
    append:['list']
  },
  /**
   * 客户持有产品列表
   */
  getcustomerProductList:{
    service,
    controller,
    action: 'accounts',
    method: 'GET',
    append:['products']
  },
  /**
   * 自定义持有产品查询
   */
  getcusProduct:{
    service,
    controller,
    action: 'accounts',
    method: 'POST',
    append:['products','list']
  },
  /**
   * 获取客户账户资产
   */
  getcustomerAssets:{
    service,
    controller,
    action: 'accounts',
    method: 'GET',
  },
  getCustomerRankList: {
    service,
    controller,
    action: 'market',
    method: 'POST',
    append:['activity','rank','list']
  },
  /**
   * 客户分配
   */
  getcuctomerAssignList: {
    service,
    controller,
    action: 'allocation',
    method: 'POST',
    append:['list']
  },
  /**
   * 删除客户分配
   */
  deletecuctomerAssign:{
    service,
    controller,
    action: 'allocation',
    method: 'DELETE'
  },

  /**
   * 客户视图性别 年龄 交易类型 资产
   */
  getCusAssets:{
    service,
    controller,
    action: 'transaction',
    method: 'GET',
    append:['asset']
  },
  getCusAction:{
    service,
    controller,
    action: 'transaction',
    method: 'GET',
    append:['action']
  },
  getCusAge:{
    service,
    controller,
    action: 'transaction',
    method: 'GET',
    append:['age']
  },
  getCusSex:{
    service,
    controller,
    action: 'transaction',
    method: 'GET',
    append:['sex']
  },

  /**
   * 查询分配
   */
  lookcuctomerAssign:{
    service,
    controller,
    action: 'allocation',
    method: 'GET'
  },

  /**
   * 编辑分配
   */
  editcuctomerAssign:{
    service,
    controller,
    action: 'allocation',
    method: 'PUT'
  },

  getCustomerGroupList: {
    service,
    controller,
    action: 'groups',
    method: 'POST',
    append:['info','list']
  },

  /**
   * 客户申领列表
   */
  getCustomerSelectList: {
    service,
    controller,
    action: 'apply',
    method: 'POST',
    append:['list']
  },

  /**
   *删除客户申领
   */
  deleteApply:{
    service,
    controller,
    action: 'apply',
    method: 'DELETE',
  },

  /**
   * 查看一条客户申领
   */
  lookApply:{
    service,
    controller,
    action: 'apply',
    method: 'GET'
  },

  /**
   * 编辑修改申领
   */
  editApply:{
    service,
    controller,
    action: 'apply',
    method: 'PUT'
  },

  delCustomer: {
    service,
    controller,
    action: 'product',
    method: 'DEL',
    append:['groups']
  },
  saveQuery: {
    service,
    controller,
    action: 'saveQuery',
    method: 'GET'
  },

  /**
   * 查询客户标签列表
   */
  getcustomerTagList:{
    service,
    controller,
    action: 'customertag',
    method: 'POST',
    append:['list']
  },

  /**
   * 获取标签一级目录
   */
  getTagCate:{
    service,
    controller,
    action: 'tag',
    method: 'POST',
    append:['catalog']
  },

  /**
   * 新增分配
   */
  senddistribute: {
    service,
    controller,
    action: 'allocation/',
    method: 'POST'
  },
  setPerson: {
    service,
    controller,
    action: 'setPerson',
    method: 'GET'
  },

  /**
   * 客户申领
   */
  customerApply: {
    service,
    controller,
    action: 'apply',
    method: 'POST'
  },
  getTagStatistics:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['statistics']
  },
  getTagHot:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['hot','list']
  },
  getTagActive:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['active','list']
  },
  getTagAdd:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['add','list']
  },
  getTagCatalog:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['catalog']
  },
  getCustTagList:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['list']
  },
  getCustomerTagDetail:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['resource']
  },
  getTagExecute:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['resource']
  },

  getTagPreference:{
    service,
    controller,
    action: 'tag',
    method: 'GET',
    append:['resource']
  },
  getTagBasicRecord:{
    service,
    controller,
    action: 'basic',
    method: 'GET'
  },
  creatTag:{
    service,
    controller,
    action: 'tag',
    method: 'POST'
  },
  getTagList:{
    service,
    controller,
    action: 'tag',
    append:['list'],
    method: 'GET'
  },
  updateGroup:{
    service,
    controller,
    action: 'groups',
    append:['info'],
    method: 'PUT'
  },
  creatGroup:{
    service,
    controller,
    action: 'groups',
    append:['info'],
    method: 'POST'
  },
  delGroup:{
    service,
    controller,
    action: 'groups',
    append:['info'],
    method: 'DELETE'
  },
  getTagCustomer:{
    service,
    controller,
    action: 'tag',
    method: 'POST',
    append:['resource']
  },
  getCustomerLevelChangelevelList:{
    service,
    controller,
    action: 'level',
    append:['record'],
    method: 'GET'
  }
}
